import apiService from '../services/service'

export function createMenuApi(data){
    return apiService.postData("/api/menu", data)
}

export function updateMenuApi(id, data){
    return apiService.postData("/api/menus/" + id, data)
}

//菜单详情
export function getMenuDetailApi(id){
    // return apiService.getData("https://www.fengfengzhidao.com/api/menus/" + id)
    const a = {"code":0,"data":{"id":1,"created_at":"2023-03-05T16:33:13.472+08:00","title":"首页","path":"/","slogan":"首页","abstract":["枫枫知道九代"],"abstract_time":7,"banner_time":7,"sort":9,"banners":[{"id":63,"path":"http://image.fengfengzhidao.com/gvb_1009/20231123092743__1123-h.png"},{"id":65,"path":"http://image.fengfengzhidao.com/gvb_1009/20231123092743__1123-i.png"},{"id":66,"path":"http://image.fengfengzhidao.com/gvb_1009/20231123092743__1123-e.png"}]},"msg":"成功"};
    return a;
}